-- GENERATED SPELL FOR [Drysnap Crawler] --


function spell0_11562(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_11562', 0, 1)
end

function spell1_11562(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11562', 8335, 1)
end

function Sorts_11562(pUnit, Event)
local choix_sorts_11562 = math.random(0, 1)
if choix_sorts_11562 == 0 then
pUnit:RegisterEvent('spell0_11562', 1, 1)
end
if choix_sorts_11562 == 1 then
pUnit:RegisterEvent('spell1_11562', 1, 1)
end
end

function mob11562_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11562', math.random(1500, 3000), 1)
end

function mob11562_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11562_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11562_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11562, 1, 'mob11562_Action')
RegisterUnitEvent(11562, 2, 'mob11562_Leave')
RegisterUnitEvent(11562, 3, 'mob11562_Kill')
RegisterUnitEvent(11562, 4, 'mob11562_Die')
